//所有mutations
//在mutations中只能是同步的操作，打印个日志什么的
//在actions文件中使用commit方法触发调用
import * as types from './mutation-types'

const mutations = {
    [types.SET_SINGER](state, singer) {//state：当前状态对象。singer：修改状态的参数
        state.singer = singer
    },
    [types.SET_LOCALE](state, locale) {//state：当前状态对象。locale：修改状态的参数
        state.locale = locale
    }
}
export default mutations